import {ParamsType} from "@ant-design/pro-components";
import {addData, deleteById, listData, pageData, updateById} from "@/services/base-request";

export const listCarousel = (param: ParamsType, options?: DynamicObject) => {
  return listData('/carousel', param, options)
}


export const updateCarousel = (carousel: API.Carousel, options?: DynamicObject) => {
  return updateById<API.Carousel>('/carousel', carousel, options)
}

export const addCarousel = (carousel: API.Carousel, options?: DynamicObject) => {
  return addData<API.Carousel>('/carousel', carousel, options)
}
export const deleteCarousel = (id: string | number, options?: DynamicObject) => {
  return deleteById(`/carousel`, id, options)
}
